package controllers

import "github.com/gin-gonic/gin"

func getUid(c *gin.Context) string {
	uid, ok := c.Get("uid")
	if !ok {
		return ""
	}
	if uidString, ok := uid.(string); ok {
		return uidString
	}
	return ""
}
